+++
title = "Another Refactoring"
date = 2021-08-28
+++


Professionalism in Software Engineering
=======================================

I actually started writing this post several weeks ago. I wanted to
write something about professionalism in software engineering, compare
and contrast Uncle Bob with Jim Coplien, discuss convenient agism
against programmers at any age whenever it suits the agressor, and where
professional software engineering actually sits on the steam specturm.
I\'ve watched and read much about these two over the years. I think
these three videos sum up most of their points.

Jim Coplien and Bob Martin Debate TDD circa 2007
<https://www.youtube.com/watch?v=KtHQGs3zFAM>

What went wrong with the IT-industry? - James Coplien circa 2017
<https://www.youtube.com/watch?v=gPP7Bleg214>

The Future of Programming Languages at the Confluence of Paradigms circa
2020 <https://www.youtube.com/watch?v=ya1xDCCMh7g>

Blog refactoring
================

I started working on a new ssg. Although I like using org to build my
blog, I decided I wanted something compatible with the existing
markdown-based websites I steward. So I started working on fenrisg[^1]
which uses pandoc instead or org-mode. I still plan on using org format,
though, fenrisg works with both.

Snippets
========

In other news, I\'ve decided to consolidate all my stale repositories
into my~experiments~[^2]. I also plan on moving all my snippets in
there, but for now, I\'ll make it a habit of holding on to them and
pasting them into my blog posts as I go along.

sorting in emacs
----------------

Sometimes it gets old mucking around with the variables. I started
looking this one up, but I haven\'t actually added it to my dotfiles.
[^3]

```
(defun sort-lines-nocase ()
  (interactive)
  (defvar sort-fold-case)
  (let ((sort-fold-case t))
    (call-interactively 'sort-lines)))
```

ignoring noise in irssi
-----------------------

```
/ignore -channels #channel * JOINS PARTS QUITS NICKS
```

turn off \"word wrap\"
----------------------

```
toggle-truncate-lines
```

colour in bash
--------------

I come back to this all the time. [^4]

The tput option works great, but on remotes when running scripts,
sometimes one will get the error:

tput: No value for \$TERM and no -T specified

bash here-docs
--------------

Writing CLIs in Python with argparse and automatically generating
usage/help prompts puts getopts to shame.

<https://tldp.org/LDP/abs/html/here-docs.html>

Footnotes {#footnotes .unnumbered}
=========

[^1]: [fenrisg](https://notabug.org/vaeringjar/fenrisg)

[^2]: [my~experiments~](https://notabug.org/vaeringjar/my_experiments)

[^3]: [sorting-in-emacs](https://stackoverflow.com/questions/20967818/emacs-function-to-case-insensitive-sort-lines)

[^4]: [colour-in-bash](https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux)
